<?php
/**
 * Created by PhpStorm.
 * User: perevozkin
 * Date: 17.03.14
 * Time: 10:37
 */


$capabilities  =  array (

    'block/book:myaddinstance'  =>  array (
        'captype'  =>  'write' ,
        'contextlevel'  => CONTEXT_SYSTEM ,
        'archetypes'  =>  array (
            'user'  => CAP_ALLOW ) ,
            'clonepermissionsfrom' => 'moodle/my:manageblocks' ) ,
    'block/book:addinstance' => array (
        'riskbitmask' => RISK_SPAM | RISK_XSS ,
        'captype' => 'write' ,
        'contextlevel' => CONTEXT_BLOCK ,
        'archetypes' => array (
            'editingteacher' => CAP_ALLOW ,
            'manager' => CAP_ALLOW ) ,
        'clonepermissionsfrom' => 'moodle/site:manageblocks' ) ,
) ;

